/* ==========================================================
   Conviction That Sets the Standard + Leadership Responsibilities table
   File: wwwroot/css/leadership-responsibilities.css
   Used by: Views/Partials/blocklist/Components/leadershipResponsibilitiesBlock.cshtml
   ========================================================== */
.ld-resp {
  --lr-navy: #14256b;
  --lr-text: #2b3352;
  --lr-gutter: 6.8vw;
  --lr-ease: cubic-bezier(.65, 0, .35, 1);
  --lr-ease-out: cubic-bezier(.16, 1, .3, 1);

  box-sizing: border-box;
  width: 100%;
  padding: clamp(40px, 4vw, 104px) var(--lr-gutter) clamp(40px, 4.6vw, 120px);
  background: linear-gradient(100deg, #e9ecfb 0%, #f3eef3 40%, #fbe7da 75%, #fcd8bd 100%);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lr-navy);
  -webkit-font-smoothing: antialiased;
}
.ld-resp *, .ld-resp *::before, .ld-resp *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- heading row ---------- */
.ld-resp__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  gap: clamp(20px, 5vw, 130px);
  align-items: start;
  margin-bottom: clamp(20px, 2.6vw, 66px);
}
.ld-resp__eyebrow {
  margin-bottom: clamp(10px, 1.2vw, 30px);
  font-size: clamp(11px, .9vw, 23px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ld-resp__heading {
  font-size: clamp(24px, 2.1vw, 54px);
  font-weight: 600;
  line-height: 1.28;
  color: var(--lr-navy);
}
.ld-resp__intro {
  padding-top: clamp(0px, 2.6vw, 66px);
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .9vw, 23px);
  line-height: 1.55;
  color: var(--lr-navy);
}

/* ---------- the expandable box ---------- */
.ld-resp__box {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(20, 37, 107, .05);
}
.ld-resp__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(14px, 1.5vw, 38px) clamp(14px, 1.45vw, 38px);
  border: 0;
  background: none;
  font: 600 clamp(14px, 1.15vw, 30px) "Poppins", sans-serif;
  text-align: left;
  color: var(--lr-navy);
  cursor: pointer;
}
.ld-resp__toggle:focus-visible { outline: 2px solid #ff9a45; outline-offset: -2px; }
.ld-resp__icon { position: relative; flex: none; width: clamp(10px, .8vw, 20px); height: clamp(10px, .8vw, 20px); transition: transform .6s var(--lr-ease-out); }
.ld-resp__icon i {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 2px;
  background: var(--lr-navy);
  transform: translateY(-50%);
  transition: transform .5s var(--lr-ease), opacity .4s ease;
}
.ld-resp__icon i:last-child { transform: translateY(-50%) rotate(90deg); }
.ld-resp__box.is-open .ld-resp__icon i:last-child { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.ld-resp__toggle:hover .ld-resp__icon { transform: rotate(90deg); }
.ld-resp__box.is-open .ld-resp__toggle:hover .ld-resp__icon { transform: none; }

.ld-resp__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--lr-ease); }
.ld-resp__box.is-open .ld-resp__panel { grid-template-rows: 1fr; }
.ld-resp__panel > div { overflow: hidden; }
.ld-resp__inner {
  padding: 0 clamp(14px, 1.45vw, 38px) clamp(18px, 1.8vw, 46px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .4s ease;
}
.ld-resp__box.is-open .ld-resp__inner {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease .2s, transform .8s var(--lr-ease-out) .2s;
}
.ld-resp__title {
  margin-bottom: clamp(12px, 1.3vw, 32px);
  font-size: clamp(16px, 1.45vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--lr-navy);
}

/* ---------- table ---------- */
.ld-resp__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ld-resp__c1 { width: 77%; }
.ld-resp__c2 { width: 23%; }
.ld-resp__table th,
.ld-resp__table td {
  padding: clamp(10px, 1.05vw, 26px) clamp(10px, 1vw, 26px);
  text-align: left;
  vertical-align: middle;
  font-size: clamp(12px, .85vw, 22px);
  line-height: 1.5;
}
.ld-resp__table thead th { background: #fdf3ea; font-weight: 500; color: var(--lr-navy); }
.ld-resp__table tbody tr { background: #f7f8fb; border-bottom: 1px solid #fff; transition: background-color .4s ease; }
.ld-resp__table tbody tr:hover { background: #eef1f8; }
.ld-resp__table tbody td { font-family: "DM Sans", "Poppins", sans-serif; color: var(--lr-text); }
.ld-resp__table tbody th { font-weight: 600; color: var(--lr-navy); }
/* rows slide in one after another when the box opens */
.ld-resp__table tbody tr { opacity: 0; transform: translateY(8px); }
.ld-resp__box.is-open .ld-resp__table tbody tr {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease calc(.3s + var(--ri, 0) * .07s), transform .7s var(--lr-ease-out) calc(.3s + var(--ri, 0) * .07s), background-color .4s ease;
}

/* ---------- entrance ---------- */
.ld-resp.js-reveal .ld-resp__fx { opacity: 0; transform: translateY(20px); }
.ld-resp.js-reveal.is-visible .ld-resp__fx {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease var(--fd, 0s), transform 1.1s var(--lr-ease-out) var(--fd, 0s);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .ld-resp { --lr-gutter: 32px; } }
@media (max-width: 900px) {
  .ld-resp { --lr-gutter: 24px; }
  .ld-resp__head { grid-template-columns: 1fr; gap: 14px; }
  .ld-resp__intro { padding-top: 0; max-width: 620px; }
}
@media (max-width: 640px) {
  .ld-resp { --lr-gutter: 20px; }
  /* table becomes stacked rows: "Led by" on top in bold, the area underneath */
  .ld-resp__table, .ld-resp__table tbody, .ld-resp__table tr, .ld-resp__table th, .ld-resp__table td { display: block; width: 100%; }
  .ld-resp__table colgroup, .ld-resp__table thead { display: none; }
  .ld-resp__table tbody tr { display: flex; flex-direction: column-reverse; margin-bottom: 8px; border-left: 3px solid #ff9a45; }
  .ld-resp__table tbody th { padding-bottom: 2px; font-size: 14px; }
  .ld-resp__table tbody td { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-resp *, .ld-resp *::before { transition-duration: .01s !important; transition-delay: 0s !important; }
}